package com.kashow.bean.message.comment;

import android.text.TextUtils;

import com.kashow.bean.BaseBean;

import java.util.List;

/**
 * Created by yybs on 16/11/23.
 */

public class Comment  extends BaseBean{

    /**
     * _id : 27
     * user : {"_id":1,"userName":"老师","openid":"ohHipv3s4me1xn_j-AIaPb_bEBd0","phone":"15221441952","wxUserInfo":{"openid":"ohHipv3s4me1xn_j-AIaPb_bEBd0","nickname":"雪花","sex":2,"city":"崇左","province":"广西","country":"中国","headimgurl":"http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0","updatedAt":"2016-09-18T08:19:24.000Z"},"createdAt":"2016-10-24T05:38:36.495Z","isSub":false,"sex":0,"balance":0,"score":0,"level":1,"isTeacher":true,"__v":0,"followers":0}
     * live : {"__v":1,"_id":47,"a_stream":[],"a_watch":11,"category":10,"createdAt":"2016-11-21T09:37:33.088Z","desc":"补习嘻嘻嘻嘻嘻嘻","imgDescs":[],"livePic":"http://oss.kashowvr.com/wx/upload/media/DUUaUaABoXeItVTaa2Gp_j_2GVEQv9N6BtNFuNCVysB0dZdbEBO5pfArrJZ3BYRy.jpeg","liveSharePic":"http://oss.kashowvr.com/wx/upload/media/DUUaUaABoXeItVTaa2Gp_j_2GVEQv9N6BtNFuNCVysB0dZdbEBO5pfArrJZ3BYRy.jpeg","playUrl":"http://pili-live-hls.kashowvr.com/kashowvr/af82f33b0534415cb0d3e45aca00e6de.m3u8","price":1,"priority":1,"score":0.01,"startAt":"2016-11-21T09:39:00.000Z","status":4,"stream":"af82f33b0534415cb0d3e45aca00e6de","teacher":6,"title":"测试的不敏敏","watch":10}
     * message : 创建消息测试18
     * floor : 18
     * showName : true
     * grade : [{"name":"吐字清晰","score":5},{"name":"幽默风趣","score":5},{"name":"实用落地","score":5}]
     * read : 1
     * createdAt : 2016-10-24 13:38:37
     * comments : []
     * id : 27
     */

    private int _id;
    private UserBean user;
    private LiveBean live;
    private String message;
    private int floor;
    private boolean showName;
    private int read;
    private String createdAt;
    private String id;
    private List<GradeBean> grade;
    private List<InnerComment> comments;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public LiveBean getLive() {
        return live;
    }

    public void setLive(LiveBean live) {
        this.live = live;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        this.floor = floor;
    }

    public boolean isShowName() {
        return showName;
    }

    public void setShowName(boolean showName) {
        this.showName = showName;
    }

    public int getRead() {
        return read;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<GradeBean> getGrade() {
        return grade;
    }

    public void setGrade(List<GradeBean> grade) {
        this.grade = grade;
    }

    public List<InnerComment> getComments() {
        return comments;
    }

    public void setComments(List<InnerComment> comments) {
        this.comments = comments;
    }

    public static class UserBean {
        /**
         * _id : 1
         * userName : 老师
         * openid : ohHipv3s4me1xn_j-AIaPb_bEBd0
         * phone : 15221441952
         * wxUserInfo : {"openid":"ohHipv3s4me1xn_j-AIaPb_bEBd0","nickname":"雪花","sex":2,"city":"崇左","province":"广西","country":"中国","headimgurl":"http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0","updatedAt":"2016-09-18T08:19:24.000Z"}
         * createdAt : 2016-10-24T05:38:36.495Z
         * isSub : false
         * sex : 0
         * balance : 0
         * score : 0
         * level : 1
         * isTeacher : true
         * __v : 0
         * followers : 0
         */

        private int _id;
        private String userName;
        private String openid;
        private String phone;
        private WxUserInfoBean wxUserInfo;
        private String createdAt;
        private boolean isSub;
        private int sex;
        private int balance;
        private int score;
        private int level;
        private boolean isTeacher;
        private int followers;
        private String nickname;
        private String headimgurl;
        public String getNickname() {
            if (TextUtils.isEmpty(nickname) && wxUserInfo!= null) {
                nickname = wxUserInfo.getNickname();
            }
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getHeadimgurl() {
            if (TextUtils.isEmpty(headimgurl) && wxUserInfo != null) {
                headimgurl = wxUserInfo.getHeadimgurl();
            }
            return headimgurl;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public WxUserInfoBean getWxUserInfo() {
            return wxUserInfo;
        }

        public void setWxUserInfo(WxUserInfoBean wxUserInfo) {
            this.wxUserInfo = wxUserInfo;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public boolean isIsSub() {
            return isSub;
        }

        public void setIsSub(boolean isSub) {
            this.isSub = isSub;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getBalance() {
            return balance;
        }

        public void setBalance(int balance) {
            this.balance = balance;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public boolean isIsTeacher() {
            return isTeacher;
        }

        public void setIsTeacher(boolean isTeacher) {
            this.isTeacher = isTeacher;
        }

        public int getFollowers() {
            return followers;
        }

        public void setFollowers(int followers) {
            this.followers = followers;
        }

        public static class WxUserInfoBean {
            /**
             * openid : ohHipv3s4me1xn_j-AIaPb_bEBd0
             * nickname : 雪花
             * sex : 2
             * city : 崇左
             * province : 广西
             * country : 中国
             * headimgurl : http://wx.qlogo.cn/mmopen/PxpCwCeBADPsn6PvP65icDkY7XLv8B5Bk5BcHggwPdZtavVBM1KcBSAKnHOaHFyeeSTWGl47j3RiaYjXVX2QzDq8lhQVKyFqMn/0
             * updatedAt : 2016-09-18T08:19:24.000Z
             */

            private String openid;
            private String nickname;
            private int sex;
            private String city;
            private String province;
            private String country;
            private String headimgurl;
            private String updatedAt;

            public String getOpenid() {
                return openid;
            }

            public void setOpenid(String openid) {
                this.openid = openid;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public int getSex() {
                return sex;
            }

            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getHeadimgurl() {
                return headimgurl;
            }

            public void setHeadimgurl(String headimgurl) {
                this.headimgurl = headimgurl;
            }

            public String getUpdatedAt() {
                return updatedAt;
            }

            public void setUpdatedAt(String updatedAt) {
                this.updatedAt = updatedAt;
            }
        }
    }

    public static class LiveBean {
        /**
         * __v : 1
         * _id : 47
         * a_stream : []
         * a_watch : 11
         * category : 10
         * createdAt : 2016-11-21T09:37:33.088Z
         * desc : 补习嘻嘻嘻嘻嘻嘻
         * imgDescs : []
         * livePic : http://oss.kashowvr.com/wx/upload/media/DUUaUaABoXeItVTaa2Gp_j_2GVEQv9N6BtNFuNCVysB0dZdbEBO5pfArrJZ3BYRy.jpeg
         * liveSharePic : http://oss.kashowvr.com/wx/upload/media/DUUaUaABoXeItVTaa2Gp_j_2GVEQv9N6BtNFuNCVysB0dZdbEBO5pfArrJZ3BYRy.jpeg
         * playUrl : http://pili-live-hls.kashowvr.com/kashowvr/af82f33b0534415cb0d3e45aca00e6de.m3u8
         * price : 1
         * priority : 1
         * score : 0.01
         * startAt : 2016-11-21T09:39:00.000Z
         * status : 4
         * stream : af82f33b0534415cb0d3e45aca00e6de
         * teacher : 6
         * title : 测试的不敏敏
         * watch : 10
         */

        private int _id;
        private int a_watch;
        private int category;
        private String createdAt;
        private String desc;
        private String livePic;
        private String liveSharePic;
        private String playUrl;
        private int price;
        private int priority;
        private double score;
        private String startAt;
        private int status;
        private String stream;
        private int teacher;
        private String title;
        private int watch;
        private List<String> a_stream;
        private List<String> imgDescs;

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public int getA_watch() {
            return a_watch;
        }

        public void setA_watch(int a_watch) {
            this.a_watch = a_watch;
        }

        public int getCategory() {
            return category;
        }

        public void setCategory(int category) {
            this.category = category;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getLivePic() {
            return livePic;
        }

        public void setLivePic(String livePic) {
            this.livePic = livePic;
        }

        public String getLiveSharePic() {
            return liveSharePic;
        }

        public void setLiveSharePic(String liveSharePic) {
            this.liveSharePic = liveSharePic;
        }

        public String getPlayUrl() {
            return playUrl;
        }

        public void setPlayUrl(String playUrl) {
            this.playUrl = playUrl;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getPriority() {
            return priority;
        }

        public void setPriority(int priority) {
            this.priority = priority;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public String getStartAt() {
            return startAt;
        }

        public void setStartAt(String startAt) {
            this.startAt = startAt;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getStream() {
            return stream;
        }

        public void setStream(String stream) {
            this.stream = stream;
        }

        public int getTeacher() {
            return teacher;
        }

        public void setTeacher(int teacher) {
            this.teacher = teacher;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getWatch() {
            return watch;
        }

        public void setWatch(int watch) {
            this.watch = watch;
        }

        public List<String> getA_stream() {
            return a_stream;
        }

        public void setA_stream(List<String> a_stream) {
            this.a_stream = a_stream;
        }

        public List<String> getImgDescs() {
            return imgDescs;
        }

        public void setImgDescs(List<String> imgDescs) {
            this.imgDescs = imgDescs;
        }
    }

    public static class GradeBean {
        /**
         * name : 吐字清晰
         * score : 5
         */

        private String name;
        private double score;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }
    }

    public static class InnerComment {

        /**
         * _id : 27
         * user : 1
         * live : 1
         * message : 创建消息测试18
         * floor : 18
         * showName : true
         * grade : [{"name":"吐字清晰","score":5},{"name":"幽默风趣","score":5},{"name":"实用落地","score":5}]
         * read : 1
         * createdAt : 2016-10-24 13:38:37
         * comments : []
         * id : 27
         */

        private int _id;
        private int user;
        private int live;
        private String message;
        private int floor;
        private boolean showName;
        private int read;
        private String createdAt;
        private String id;
        private List<GradeBean> grade;
        private List<InnerComment> comments;

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public int getUser() {
            return user;
        }

        public void setUser(int user) {
            this.user = user;
        }

        public int getLive() {
            return live;
        }

        public void setLive(int live) {
            this.live = live;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getFloor() {
            return floor;
        }

        public void setFloor(int floor) {
            this.floor = floor;
        }

        public boolean isShowName() {
            return showName;
        }

        public void setShowName(boolean showName) {
            this.showName = showName;
        }

        public int getRead() {
            return read;
        }

        public void setRead(int read) {
            this.read = read;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<GradeBean> getGrade() {
            return grade;
        }

        public void setGrade(List<GradeBean> grade) {
            this.grade = grade;
        }

        public List<InnerComment> getComments() {
            return comments;
        }

        public void setComments(List<InnerComment> comments) {
            this.comments = comments;
        }

        public static class GradeBean {
        }
    }

}
